package proxy;

import lombok.extern.slf4j.Slf4j;

import java.rmi.RemoteException;
import java.rmi.server.RMIClientSocketFactory;
import java.rmi.server.RMIServerSocketFactory;
import java.rmi.server.UnicastRemoteObject;

/**
 * @author zenghy
 **/
@Slf4j
public class RmiSubject extends UnicastRemoteObject implements Subject {

    protected RmiSubject() throws RemoteException {
    }

    protected RmiSubject(int port) throws RemoteException {
        super(port);
    }

    protected RmiSubject(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws RemoteException {
        super(port, csf, ssf);
    }

    @Override
    public void doSomething() {
        log.info("RmiSubject do");
    }
}
